<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
<div id="app">
    <h1>{{name}}</h1>
</div>
</body>

</html>
<!-- vue2版本 cdn地址 -->
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
    // vue2的写法
    //vue属于响应式编程,只要数据发生变化视图就自动发生变化
    let vm = new Vue({
        //让vue接管哪一块dom区域
        el: "#app",
        //数据
        data: {  // M
            name: "李雷"
        }
    })

</script>